OpenBuildings GenerativeComponents Help

Datetime

A datetime value represents a point in time ranging from year 0001 A.D. through year 9999 A.D., precise to the millisecond (thousandth of a second).

General Form

datetime(year, month, day, hour, minute, second,
millisecond)

Each item in the list is an integer.

  • year ranges from 1 through 9999.
  • month ranges from 1 through 12.
  • day ranges from 1 through the number of days in that month.
  •  hour ranges from 0 through 23 (o.e., a 24-hour clock).
  • minute ranges from 0 through 59.
  • second ranges from 0 through 59.
  • millisecond ranges from 0 through 999.

Example

datetime(2007,2,12)

This represents the date February 12th, 2007.